<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>星际空间站登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #000;
            overflow-x: hidden;
            font-family: 'Arial', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .stars {
            position: fixed;
            width: 100vw;
            height: 100vh;
            background:
                    radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0));
            animation: stars 120s linear infinite;
        }

        @keyframes stars {
            from { transform: translateY(0); }
            to { transform: translateY(-100vh); }
        }

        .container {
            position: relative;
            width: 100%;
            padding: 20px;
        }

        .title {
            font-size: 3rem;
            color: transparent;
            background: linear-gradient(45deg, #00f7ff, #6a00ff);
            -webkit-background-clip: text;
            text-align: center;
            margin-bottom: 2rem;
            text-shadow: 0 0 20px rgba(106, 0, 255, 0.5);
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .login-container {
            max-width: 400px;
            margin: 0 auto;
            position: relative;
        }

        .card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 2rem;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 100%;
            background: linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.2),
                    transparent
            );
            transition: 0.5s;
        }

        .card:hover::before {
            left: 100%;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .input-field {
            width: 100%;
            padding: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(0, 247, 255, 0.3);
            border-radius: 6px;
            color: #00f7ff;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .input-field:focus {
            outline: none;
            border-color: #6a00ff;
            box-shadow: 0 0 15px rgba(106, 0, 255, 0.5);
        }

        .login-btn {
            width: 100%;
            background: linear-gradient(45deg, #00f7ff, #6a00ff);
            color: white;
            padding: 12px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(106, 0, 255, 0.4);
        }

        .signup-link {
            margin-top: 1.5rem;
            color: #fff;
            text-align: center;
        }

        .signup-link a {
            color: #6a00ff;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .signup-link a:hover {
            color: #00f7ff;
        }
    </style>
</head>
<body>
<div class="stars"></div>

<main class="container">
    <h1 class="title">星際空間站登錄</h1>

    <div class="login-container">
        <div class="card">
            <form class="login-form">
                <div class="form-group">
                    <input type="text"
                           class="input-field"
                           placeholder="量子通信ID"
                           required>
                </div>
                <div class="form-group">
                    <input type="password"
                           class="input-field"
                           placeholder="空間密鑰"
                           required>
                </div>
                <button type="submit" class="login-btn">啟動授權協議</button>
                <div class="signup-link">
                    <p>尚未註冊？ <a href="#">創建時空坐標</a></p>
                </div>
            </form>
        </div>
    </div>
</main>

<script>
    function createStars() {
        const container = document.querySelector('.stars');
        for (let i = 0; i < 200; i++) {
            const star = document.createElement('div');
            star.style.position = 'absolute';
            star.style.left = Math.random() * 100 + '%';
            star.style.top = Math.random() * 100 + '%';
            star.style.width = Math.random() * 3 + 'px';
            star.style.height = star.style.width;
            star.style.background = 'white';
            star.style.borderRadius = '50%';
            container.appendChild(star);
        }
    }
    createStars();
</script>
</body>
</html>